<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
{$meta}
<link type="text/css" rel="stylesheet" href="{$css_path}/global.css" />
<link type="text/css" rel="stylesheet" href="{$css_path}/style.css" />
</head><body>
<!--头部--> 
{include file="top.html"}
{include file="header.html"} 
<!--登录-->
<div id="main">
  <div id="q2a_list_left">
    <div class="category_list"> {if count($category_list)>0}
      {foreach from=$category_list item=cat_list}
      <dl>
        <dt>{$cat_list.value}：</dt>
        <dd>
        <dd> <span class="all"> <a href="{$site_url}question/list/{$cat_list.id}" {if $category_detail.id == $cat_list.id || empty($category_detail.id)}class="current"{/if} title="{$cat_list.value}">全部</a> </span>
          <ul>
            {if !empty($cat_list.children)}
            {foreach from=$cat_list.children item=children}
            <li> <a title="{$children.value}" href="{$site_url}question/list/{$children.id}" {if $category_detail.id == $children.id}class="current"{/if}> <span>{$children.value}</span> </a> </li>
            {/foreach} 
            {/if}
          </ul>
        </dd>
        </dd>
      </dl>
      {/foreach} 
      {/if}
      <div class="clear"></div>
    </div>
    <div class="clear"></div>
    <div id="q2a_main">
      <div class="question_header">
        <div id="title">
          <h1>{if !empty($category_detail)}{$category_detail.name}{else}全部{/if}</h1>
        </div>
        <div id="tabs"> <a href="{$site_url}question/list/{$category_detail.id}#tabs" {if $current_type == 'all'}class='current'{/if}>所有问题</a> <a href="{$site_url}question/answered/{$category_detail.id}#tabs" {if $current_type == 'answered'}class='current'{/if}>已经回答</a> <a href="{$site_url}question/unanswered/{$category_detail.id}#tabs" {if $current_type == 'unanswer'}class='current'{/if}>尚未回答</a> <a href="{$site_url}question/hot/{$category_detail.id}#tabs" class="hot {if $current_type == 'hot'}current{/if}" >热门</a> </div>
        <div class="clear"></div>
      </div>
      <div class="all_question"> {foreach from=$question_list item=list}
        <div class="all_question_list">
          <div class="gr_pic"> <a href="#"><img src="{$list.avatar_path}" width="60px" height="60px"/></a>
            <p><a href="#">他的主页</a></p>
          </div>
          <div class="show_question">
            <p class="p1"><a href="{$list.url}">{$list.name}</a></p>
            <p>{$list.content|escape|truncate:35:'...'}</p>
            <p class="tags_list">
              {if count($list.tags)>0}
              {foreach from=$list.tags item=tags}
             <a href='{$site_url}question/tag/{$tags.id}' class='tag project' title='{$tags.name}'>{$tags.name}</a>
              {/foreach}
              {/if}
            </p>
            <div class="clear"></div>
            <p> {$list.username} 发布于 {$list.timeformat}</p>
          </div>
          <div class="all_state">
            <ul id="all_state_list">
              <li>
                <p><a href="#">{$list.answer_count}</a></p>
                <p><a href="#">回答</a></p>
              </li>
              <li>
                <p ><a href="#">{$list.votes}</a></p>
                <p ><a href="#">投票</a></p>
              </li>
              <li>
                <p ><a href="#">{$list.view_count}</a></p>
                <p ><a href="#">浏览</a></p>
              </li>
            </ul>
          </div>
          <div class="clear"></div>
        </div>
        {/foreach}  {$page} </div>
      <div class="clear"></div>
    </div>
    <div class="clear"></div>
  </div>
  <div id="q2a_list_right">
    <div class="no_answer">
      <p>找不到想要的答案</p>
      <div><a href="{$site_url}question/ask">我要提问</a></div>
    </div>
    <div class="hot_tags">
      <div class="hot_tags_top">
        <h3>热门标签</h3>
        <span><a href="#">更多>></a></span></div>
      <p class="tags_list"> {if count($hot_tags)>0}
        {foreach from=$hot_tags item=tags} <a href='{$site_url}question/tag/{$tags.id}' class='tag project' title='{$tags.name}'>{$tags.name}<em>({$tags.post_count})</em></a> {/foreach}
        {/if} </p>
    </div>
    <div class="clear"></div>
    <div class="active_population">
      <div class="hot_tags_top">
        <h3>活跃人群</h3>
      </div>
      <ul id="population_list">
        <li> <img src="{$images_path}/per_pic.png" /><br/>
          <p><a href="">花夕絮</a></p>
        </li>
        <li> <img src="{$images_path}/per_pic.png"/><br/>
          <p><a href="">花夕絮</a></p>
        </li>
        <li> <img src="{$images_path}/per_pic.png" /><br/>
          <p><a href="">花夕絮</a></p>
        </li>
        <li> <img src="{$images_path}/per_pic.png"/><br/>
          <p><a href="">花夕絮</a></p>
        </li>
        <li> <img src="{$images_path}/per_pic.png" /><br/>
          <p><a href="">花夕絮</a></p>
        </li>
        <li> <img src="{$images_path}/per_pic.png"/><br/>
          <p><a href="">花夕絮</a></p>
        </li>
      </ul>
    </div>
  </div>
  <div class="clear"></div>
</div>
{include file="footer.html"}
</body>
</html>
